<template>
	<div>
		Login
		<button @click="login">登录</button>
	</div>
</template>

<script>
export default {
	data(){
		return {
			redirectUrl:''
		}
	},
	methods:{
		login(){
			localStorage.setItem('token','luasie');
			
			console.log(this.redirectUrl)
			this.$router.push({
				path: this.redirectUrl,
			})
		}
	},
	created() {
		this.redirectUrl = this.$route.query.redirectUrl
	}
}
</script>

<style>
</style>
